import { createRouter, createWebHashHistory } from "vue-router";



export const constantRoutes = [
  {
    path: '/',
    name: "上传活动网页",
    component: () => import('@/views/upload/index.vue')
  },
  {
    path: '/:pathMatch(.*)*',
    name: '404',
    redirect: '/'
  },
];
const router = createRouter({
  history: createWebHashHistory(),
  routes: constantRoutes,
  strict: false,
  // 切换页面，滚动到最顶部
  scrollBehavior: () => ({ left: 0, top: 0 })
});

export default router;